package StudyCode.summary.myfile;

import java.nio.file.Path;
import java.nio.file.Paths;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class UsingPathResolveSibling {
	public static void main(String[] args) {
		Path base = Paths.get("C:/folder1/folder2/folder3/test.txt");
		Path path = base.resolveSibling("test2.txt");
		System.out.println(path.toString());
	}
}
